package itdep.common.aspect;

import java.io.IOException;
import java.util.Properties;

/**
 * @author $Author: ikhalopik $ (latest modification by $Author: ikhalopik $:)
 * @version $Revision: 4 $   $Date: 2010-06-10 13:13:16 +0000 (Thu, 10 Jun 2010) $
 */
public class JSFSecurityPropertiesReader implements SecurityPropertiesReader {
	private String location = "/security/jsf-security.properties";

	/** @return Properties */
	@Override
	public Properties getProperties() {
		try {
			Properties props = new Properties();
			props.load(this.getClass().getResourceAsStream(location));
			return props;
		} catch (IOException e) {
			throw new RuntimeException();
		}
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(final String location) {
		this.location = location;
	}
}
